package o;

import android.content.Context;

public class dql extends dpn<Boolean, Boolean> {
    private int ˎ;

    protected /* synthetic */ Object ˋ(Context context, Object obj) throws InterruptedException {
        return ॱ(context, (Boolean) obj);
    }

    protected /* synthetic */ void ˏ(Context context, Object obj, Object obj2) throws InterruptedException {
        ॱ(context, (Boolean) obj, (Boolean) obj2);
    }

    protected /* synthetic */ Object ॱ(Context context) throws InterruptedException {
        return ˏ(context);
    }

    public dql() {
        this.ˊ = "SplitApksDeferredTask";
        ˋ(2);
    }

    protected void ˋ(int i) {
        this.ˎ = i;
    }

    protected Boolean ˏ(Context context) {
        Logger.ˎ("SplitApksDeferredTask", "event type: " + this.ˎ);
        if (ˏ() && ˎ(context)) {
            return Boolean.valueOf(true);
        }
        return Boolean.valueOf(false);
    }

    private boolean ˏ() {
        int ˊ = edp.ˊ();
        if (ˊ <= edl.ˏ().ˎ()) {
            return true;
        }
        Logger.ˋ("SplitApksDeferredTask", "The cpu usage is too high: " + ˊ);
        return false;
    }

    private boolean ˎ(Context context) {
        edj ˋ = edh.ˋ(context);
        if (ˋ.ॱ || ˋ.ˎ > edl.ˏ().ˊ()) {
            return true;
        }
        Logger.ˋ("SplitApksDeferredTask", "The battery is too low: " + ˋ.toString());
        return false;
    }

    protected Boolean ॱ(Context context, Boolean bool) {
        if (bool == null || !bool.booleanValue()) {
            return Boolean.valueOf(false);
        }
        ((bod) bkt.ˋ("DynamicCore", bod.class)).ˊ(this.ˎ);
        return Boolean.valueOf(true);
    }

    protected void ॱ(Context context, Boolean bool, Boolean bool2) {
    }
}
